package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;
import lombok.Getter;

/**
 * @description: 车辆属性枚举
 * @author: sijun.yu
 * @date: 2020/5/13 19:01
 */
@Getter
public enum CarNatureEnum implements AfsBaseEnum {

    @AfsEnum(key = "01", desc = "新车", mapping = {"afs-case=01", "afs-contract=NEW_CAR"})
    NEW_CAR("01", "新车"),

    @AfsEnum(key = "02", desc = "挂牌新车", mapping = {"afs-case=02", "afs-contract=PLATE_CAR"})
    PLATE_CAR("02", "挂牌新车"),

    @AfsEnum(key = "03", desc = "二手车", mapping = {"afs-case=03", "afs-contract=OLD_CAR"})
    OLD_CAR("03", "二手车"),

    @AfsEnum(key = "04", desc = "认证二手车", mapping = {"afs-case=04", "afs-contract=CA_OLD_CAR"})
    CA_OLD_CAR("04", "认证二手车"),

    @AfsEnum(key = "05", desc = "试乘试驾车", mapping = {"afs-case=05", "afs-contract=TEST_CAR"})
    TEST_CAR("05", "试乘试驾车");


    CarNatureEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }
}
